<!--
  描述：产品分类开通品牌表列表页
  @author tanghongjun
  @since 2020-08-19 11:18:36
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>产品分类开通品牌表列表</title>
</head>
<body>

<div class="layui-fluid">
    <!--面包屑-->
    <blockquote class="layui-crumb">
        前台产品>产品分类> 产品分类> <span th:text="${categName}"></span>>
        <a lay-href="/product/categorybrand/list.action" lay-text="产品分类开通品牌表管理" th:text="品牌关联">品牌关联</a>
    </blockquote>

    <div class="layui-card">

        <div class="layui-split">&nbsp;</div>

        <form method="post" class="layui-form"  action="/product/categorybrand/list.action" id="brand_query">
            <div class="layui-form" th:include="product/categorybrand/_query :: query "></div>
        </form>

        <div class="layui-card-body">
            <div th:replace="product/categorybrand/_table::table"/>
            <script type="text/html" id="zmn-table-tool">
                <div class="layui-btn-container">
                    <div class="layui-btn-group" th:if="${#authPermit.checkPermit('/product/categorybrand/updateStatus.action')}">
                        <button class="layui-btn layui-btn-sm" lay-event="start">启用</button>
                        <button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="stop">停用</button>
                    </div>
                    <div class="layui-btn-group">
                        <button th:if="${#authPermit.checkPermit('/product/categorybrand/addEditView.action')}" class="layui-btn  layui-btn-sm layui-btn-primary" lay-event="add">+新增</button>
                    </div>
                </div>


            </script>
        </div>

    </div>
</div>

<script type="text/javascript" th:inline="javascript">

    var json = {
        totalCount: [[${vo.totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]],
        items: [[${items}]],
        hasEditSort:[[${#authPermit.checkPermit('/product/categorybrand/updateSort.action')}]]
    };

    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        plat_categorybrand_list: "product/categorybrand/zmn.plat.categorybrand.list",
    }).use(['index', 'plat_categorybrand_list']);

</script>
</body>
</html>